*, fieldset, input {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Raleway", sans-serif;
}

.wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: linear-gradient(to top, #30cfd0 0%, #330867 100%);
    background-image: linear-gradient(to top, #0c3483 0%, #a2b6df 100%, #6b8cce 100%, #a2b6df 100%);
}

.wrapper header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 15%;
}

.wrapper header h1 {
    color: #fff;
    text-shadow: 2px 2px #000;
}

.wrapper main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 85%;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

.wrapper main .rotatingForm {
    height: 400px;
    width: 300px;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    transition: all 1s ease-in-out;
}

.wrapper main .rotatingForm::after {
    content: "";
    position: absolute;
    display: block;
    width: 300px;
    height: 300px;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-transform: rotateX(90deg) translateZ(-300px) scale(0.85);
    transform: rotateX(90deg) translateZ(-300px) scale(0.85);
    box-shadow: 0 0 100px 75px rgba(0, 0, 0, 0.5);
}

.wrapper main .rotatingForm .step {
    position: absolute;
    height: 400px;
    width: 300px;
    padding: 50px;
    border: 2px solid #30cfd0;
    background-image: linear-gradient(60deg, #29323c 0%, #485563 100%);
    color: #fff;
}

.wrapper main .rotatingForm .step .inputSetContainer {
    position: relative;
}

.wrapper main .rotatingForm .step .inputSetContainer input {
    width: 100%;
    margin-bottom: 60px;
    border: 0;
    border-bottom: 2px solid #30cfd0;
    padding: 5px;
    outline: 0;
    background: 0;
    color: #fff;
}

.wrapper main .rotatingForm .step .inputSetContainer input:focus {
    border-bottom: 2px solid #c1f1f1;
}

.wrapper main .rotatingForm .step .inputSetContainer label:not(.rbLabel) {
    position: absolute;
    top: 7px;
    left: 5px;
    z-index: -1;
    font-size: 1rem;
    font-weight: 700;
    color: #30cfd0;
    transition: all 0.5s ease-in-out;
}

.wrapper main .rotatingForm .step .inputSetContainer label:not(.rbLabel).focused {
    top: -10px;
    font-size: 0.7rem;
}

.wrapper main .rotatingForm .step .btnContainer {
    display: flex;
    width: 100%;
    justify-content: center;
    align-self: flex-end;
}

.wrapper main .rotatingForm .step .btnContainer .next-btn {
    right: 20px;

}

.nextt-btn {
    left: 20px;
    background-color: #c1f1f1;
    color: #111;
    position: absolute;
    bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    border-radius: 5px;
    padding: 10px 25px;
    background-color: #30cfd0;
    font-weight: 700;
    color: black;
    text-decoration: none;
    transition: all 0.5s ease-in-out;
font-size: 20px;
}

.wrapper main .rotatingForm .step .btnContainer .back-btn {
    left: 20px;
}

.wrapper main .rotatingForm .step .btnContainer .submit-btn {
    border: 0;
    padding: 0 25px !important;
}

.wrapper main .rotatingForm .step .btnContainer .next-btn, .wrapper main .rotatingForm .step .btnContainer .back-btn, .wrapper main .rotatingForm .step .btnContainer .submit-btn {
    position: absolute;
    bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    border-radius: 5px;
    padding: 10px 25px;
    background-color: #30cfd0;
    font-weight: 700;
    color: black;
    text-decoration: none;
    transition: all 0.5s ease-in-out;
}

.wrapper main .rotatingForm .step .btnContainer .next-btn:hover, .wrapper main .rotatingForm .step .btnContainer .back-btn:hover, .wrapper main .rotatingForm .step .btnContainer .submit-btn:hover {
    background-color: #c1f1f1;
    color: #111;
}

.step1 {
    -webkit-transform: rotateY(0deg) translateZ(150px);
    transform: rotateY(0deg) translateZ(150px);
}

.step2 {
    -webkit-transform: rotateY(90deg) translateZ(150px);
    transform: rotateY(90deg) translateZ(150px);
}

.step3 {
    -webkit-transform: rotateY(180deg) translateZ(150px);
    transform: rotateY(180deg) translateZ(150px);
}

.step4 {
    -webkit-transform: rotateY(270deg) translateZ(150px);
    transform: rotateY(270deg) translateZ(150px);
}

.rotatingForm.show-step1 {
    -webkit-transform: translateZ(-150px) rotateY(0deg);
    transform: translateZ(-150px) rotateY(0deg);
}

.rotatingForm.show-step2 {
    -webkit-transform: translateZ(-150px) rotateY(-90deg);
    transform: translateZ(-150px) rotateY(-90deg);
}

.rotatingForm.show-step3 {
    -webkit-transform: translateZ(-150px) rotateY(-180deg);
    transform: translateZ(-150px) rotateY(-180deg);
}

.rotatingForm.show-step4 {
    -webkit-transform: translateZ(-150px) rotateY(-270deg);
    transform: translateZ(-150px) rotateY(-270deg);
}
